/*
*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2011-2018 ARM or its affiliates
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

#if !defined(__IMX227_SEQ_H__)
#define __IMX227_SEQ_H__

static acam_reg_t init[] = {
    //wait command - address is 0xFFFF
    { 0xFFFF, 20 },
    //stop sequence - address is 0x0000
    { 0x0000, 0x0000, 0x0000, 0x0000 }
};

static acam_reg_t setting_2200_2720_2lane_1g_30fps[] = {
	{0x0136, 0x18, 0xFF, 1},
	{0x0137, 0x00, 0xFF, 1},
	{0xAE20, 0x00, 0xFF, 1},
	{0x463B, 0x30, 0xFF, 1},
	{0x463E, 0x05, 0xFF, 1},
	{0x4612, 0x66, 0xFF, 1},
	{0x4815, 0x65, 0xFF, 1},
	{0x4991, 0x00, 0xFF, 1},
	{0x4992, 0x01, 0xFF, 1},
	{0x4993, 0xFF, 0xFF, 1},
	{0x458B, 0x00, 0xFF, 1},
	{0x452A, 0x02, 0xFF, 1},
	{0x4A7C, 0x00, 0xFF, 1},
	{0x4A7D, 0x1C, 0xFF, 1},
	{0x4A7E, 0x00, 0xFF, 1},
	{0x4A7F, 0x17, 0xFF, 1},
	{0x462C, 0x2E, 0xFF, 1},
	{0x461B, 0x28, 0xFF, 1},
	{0x4663, 0x29, 0xFF, 1},
	{0x461A, 0x7C, 0xFF, 1},
	{0x4619, 0x28, 0xFF, 1},
	{0x4667, 0x22, 0xFF, 1},
	{0x466B, 0x23, 0xFF, 1},
	{0x4D16, 0x00, 0xFF, 1},
	{0x6204, 0x01, 0xFF, 1},
	{0x6209, 0x00, 0xFF, 1},
	{0x621F, 0x01, 0xFF, 1},
	{0x621E, 0x10, 0xFF, 1},
	{0x48E3, 0x82, 0xFF, 1},
	{0x0114, 0x01, 0xFF, 1},
	{0x0340, 0x0A, 0xFF, 1},
	{0x0341, 0xE0, 0xFF, 1},
	{0x0342, 0x10, 0xFF, 1},
	{0x0343, 0x00, 0xFF, 1},
	{0x0344, 0x00, 0xFF, 1},
	{0x0345, 0x64, 0xFF, 1},
	{0x0346, 0x00, 0xFF, 1},
	{0x0347, 0x00, 0xFF, 1},
	{0x0348, 0x08, 0xFF, 1},
	{0x0349, 0xFB, 0xFF, 1},
	{0x034A, 0x0A, 0xFF, 1},
	{0x034B, 0x9F, 0xFF, 1},
	{0x0381, 0x01, 0xFF, 1},
	{0x0383, 0x01, 0xFF, 1},
	{0x0385, 0x01, 0xFF, 1},
	{0x0387, 0x01, 0xFF, 1},
	{0x0900, 0x00, 0xFF, 1},
	{0x0901, 0x00, 0xFF, 1},
	{0x0112, 0x0A, 0xFF, 1},
	{0x0113, 0x0A, 0xFF, 1},
	{0x034C, 0x08, 0xFF, 1},
	{0x034D, 0x98, 0xFF, 1},
	{0x034E, 0x0A, 0xFF, 1},
	{0x034F, 0xA0, 0xFF, 1},
	{0x0408, 0x00, 0xFF, 1},
	{0x0409, 0x00, 0xFF, 1},
	{0x040A, 0x00, 0xFF, 1},
	{0x040B, 0x00, 0xFF, 1},
	{0x040C, 0x08, 0xFF, 1},
	{0x040D, 0x98, 0xFF, 1},
	{0x040E, 0x0A, 0xFF, 1},
	{0x040F, 0xA0, 0xFF, 1},
	{0x0301, 0x07, 0xFF, 1},
	{0x0303, 0x02, 0xFF, 1},
	{0x0305, 0x04, 0xFF, 1},
	{0x0306, 0x00, 0xFF, 1},
	{0x0307, 0xC8, 0xFF, 1},
	{0x0309, 0x0A, 0xFF, 1},
	{0x030B, 0x01, 0xFF, 1},
	{0x030D, 0x0F, 0xFF, 1},
	{0x030E, 0x02, 0xFF, 1},
	{0x030F, 0x71, 0xFF, 1},
	{0x0310, 0x01, 0xFF, 1},
	{0x0820, 0x07, 0xFF, 1},
	{0x0821, 0xD0, 0xFF, 1},
	{0x0822, 0x00, 0xFF, 1},
	{0x0823, 0x00, 0xFF, 1},
	{0x3000, 0x00, 0xFF, 1},
	{0x3002, 0x01, 0xFF, 1},
	{0x3003, 0x35, 0xFF, 1},
	{0x6259, 0x06, 0xFF, 1},
	{0x0202, 0x0A, 0xFF, 1},// int time
	{0x0203, 0xDE, 0xFF, 1},
	{0x0204, 0x00, 0xFF, 1},
	{0x0205, 0xC0, 0xFF, 1},//a gain
	{0x020E, 0x01, 0xFF, 1},
	{0x020F, 0x00, 0xFF, 1},
	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_2200_2720_2lane_1g_30fps_test_pattern[] = {
	{0x0136, 0x18, 0xFF, 1},
	{0x0137, 0x00, 0xFF, 1},
	{0xAE20, 0x00, 0xFF, 1},
	{0x463B, 0x30, 0xFF, 1},
	{0x463E, 0x05, 0xFF, 1},
	{0x4612, 0x66, 0xFF, 1},
	{0x4815, 0x65, 0xFF, 1},
	{0x4991, 0x00, 0xFF, 1},
	{0x4992, 0x01, 0xFF, 1},
	{0x4993, 0xFF, 0xFF, 1},
	{0x458B, 0x00, 0xFF, 1},
	{0x452A, 0x02, 0xFF, 1},
	{0x4A7C, 0x00, 0xFF, 1},
	{0x4A7D, 0x1C, 0xFF, 1},
	{0x4A7E, 0x00, 0xFF, 1},
	{0x4A7F, 0x17, 0xFF, 1},
	{0x462C, 0x2E, 0xFF, 1},
	{0x461B, 0x28, 0xFF, 1},
	{0x4663, 0x29, 0xFF, 1},
	{0x461A, 0x7C, 0xFF, 1},
	{0x4619, 0x28, 0xFF, 1},
	{0x4667, 0x22, 0xFF, 1},
	{0x466B, 0x23, 0xFF, 1},
	{0x4D16, 0x00, 0xFF, 1},
	{0x6204, 0x01, 0xFF, 1},
	{0x6209, 0x00, 0xFF, 1},
	{0x621F, 0x01, 0xFF, 1},
	{0x621E, 0x10, 0xFF, 1},
	{0x48E3, 0x82, 0xFF, 1},
	{0x0114, 0x01, 0xFF, 1},
	{0x0340, 0x0A, 0xFF, 1},
	{0x0341, 0xE0, 0xFF, 1},
	{0x0342, 0x10, 0xFF, 1},
	{0x0343, 0x00, 0xFF, 1},
	{0x0344, 0x00, 0xFF, 1},
	{0x0345, 0x64, 0xFF, 1},
	{0x0346, 0x00, 0xFF, 1},
	{0x0347, 0x00, 0xFF, 1},
	{0x0348, 0x08, 0xFF, 1},
	{0x0349, 0xFB, 0xFF, 1},
	{0x034A, 0x0A, 0xFF, 1},
	{0x034B, 0x9F, 0xFF, 1},
	{0x0381, 0x01, 0xFF, 1},
	{0x0383, 0x01, 0xFF, 1},
	{0x0385, 0x01, 0xFF, 1},
	{0x0387, 0x01, 0xFF, 1},
	{0x0900, 0x00, 0xFF, 1},
	{0x0901, 0x00, 0xFF, 1},
	{0x0112, 0x0A, 0xFF, 1},
	{0x0113, 0x0A, 0xFF, 1},
	{0x034C, 0x08, 0xFF, 1},
	{0x034D, 0x98, 0xFF, 1},
	{0x034E, 0x0A, 0xFF, 1},
	{0x034F, 0xA0, 0xFF, 1},
	{0x0408, 0x00, 0xFF, 1},
	{0x0409, 0x00, 0xFF, 1},
	{0x040A, 0x00, 0xFF, 1},
	{0x040B, 0x00, 0xFF, 1},
	{0x040C, 0x08, 0xFF, 1},
	{0x040D, 0x98, 0xFF, 1},
	{0x040E, 0x0A, 0xFF, 1},
	{0x040F, 0xA0, 0xFF, 1},
	{0x0301, 0x07, 0xFF, 1},
	{0x0303, 0x02, 0xFF, 1},
	{0x0305, 0x04, 0xFF, 1},
	{0x0306, 0x00, 0xFF, 1},
	{0x0307, 0xC8, 0xFF, 1},
	{0x0309, 0x0A, 0xFF, 1},
	{0x030B, 0x01, 0xFF, 1},
	{0x030D, 0x0F, 0xFF, 1},
	{0x030E, 0x02, 0xFF, 1},
	{0x030F, 0x71, 0xFF, 1},
	{0x0310, 0x01, 0xFF, 1},
	{0x0820, 0x07, 0xFF, 1},
	{0x0821, 0xD0, 0xFF, 1},
	{0x0822, 0x00, 0xFF, 1},
	{0x0823, 0x00, 0xFF, 1},
	{0x3000, 0x00, 0xFF, 1},
	{0x3002, 0x01, 0xFF, 1},
	{0x3003, 0x35, 0xFF, 1},
	{0x6259, 0x06, 0xFF, 1},
	{0x0600, 0x00, 0xFF, 1},
	{0x0601, 0x03, 0xFF, 1},
	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_2200_2720_2lane_960m_30fps_test_pattern[] = {
	{0x0136, 0x18, 0xFF, 1},
	{0x0137, 0x00, 0xFF, 1},
	{0xAE20, 0x00, 0xFF, 1},
	{0x463B, 0x30, 0xFF, 1},
	{0x463E, 0x05, 0xFF, 1},
	{0x4612, 0x66, 0xFF, 1},
	{0x4815, 0x65, 0xFF, 1},
	{0x4991, 0x00, 0xFF, 1},
	{0x4992, 0x01, 0xFF, 1},
	{0x4993, 0xFF, 0xFF, 1},
	{0x458B, 0x00, 0xFF, 1},
	{0x452A, 0x02, 0xFF, 1},
	{0x4A7C, 0x00, 0xFF, 1},
	{0x4A7D, 0x1C, 0xFF, 1},
	{0x4A7E, 0x00, 0xFF, 1},
	{0x4A7F, 0x17, 0xFF, 1},
	{0x462C, 0x2E, 0xFF, 1},
	{0x461B, 0x28, 0xFF, 1},
	{0x4663, 0x29, 0xFF, 1},
	{0x461A, 0x7C, 0xFF, 1},
	{0x4619, 0x28, 0xFF, 1},
	{0x4667, 0x22, 0xFF, 1},
	{0x466B, 0x23, 0xFF, 1},
	{0x4D16, 0x00, 0xFF, 1},
	{0x6204, 0x01, 0xFF, 1},
	{0x6209, 0x00, 0xFF, 1},
	{0x621F, 0x01, 0xFF, 1},
	{0x621E, 0x10, 0xFF, 1},
	{0x48E3, 0x82, 0xFF, 1},
	{0x0114, 0x01, 0xFF, 1},
	{0x0340, 0x0A, 0xFF, 1},
	{0x0341, 0xC0, 0xFF, 1},
	{0x0342, 0x10, 0xFF, 1},
	{0x0343, 0x38, 0xFF, 1},
	{0x0344, 0x00, 0xFF, 1},
	{0x0345, 0x64, 0xFF, 1},
	{0x0346, 0x00, 0xFF, 1},
	{0x0347, 0x00, 0xFF, 1},
	{0x0348, 0x08, 0xFF, 1},
	{0x0349, 0xFB, 0xFF, 1},
	{0x034A, 0x0A, 0xFF, 1},
	{0x034B, 0x9F, 0xFF, 1},
	{0x0381, 0x01, 0xFF, 1},
	{0x0383, 0x01, 0xFF, 1},
	{0x0385, 0x01, 0xFF, 1},
	{0x0387, 0x01, 0xFF, 1},
	{0x0900, 0x00, 0xFF, 1},
	{0x0901, 0x00, 0xFF, 1},
	{0x0112, 0x0A, 0xFF, 1},
	{0x0113, 0x0A, 0xFF, 1},
	{0x034C, 0x08, 0xFF, 1},
	{0x034D, 0x98, 0xFF, 1},
	{0x034E, 0x0A, 0xFF, 1},
	{0x034F, 0xA0, 0xFF, 1},
	{0x0408, 0x00, 0xFF, 1},
	{0x0409, 0x00, 0xFF, 1},
	{0x040A, 0x00, 0xFF, 1},
	{0x040B, 0x00, 0xFF, 1},
	{0x040C, 0x08, 0xFF, 1},
	{0x040D, 0x98, 0xFF, 1},
	{0x040E, 0x0A, 0xFF, 1},
	{0x040F, 0xA0, 0xFF, 1},
	{0x0301, 0x07, 0xFF, 1},
	{0x0303, 0x02, 0xFF, 1},
	{0x0305, 0x04, 0xFF, 1},
	{0x0306, 0x00, 0xFF, 1},
	{0x0307, 0xC8, 0xFF, 1},
	{0x0309, 0x0A, 0xFF, 1},
	{0x030B, 0x01, 0xFF, 1},
	{0x030D, 0x0F, 0xFF, 1},
	{0x030E, 0x02, 0xFF, 1},
	{0x030F, 0x58, 0xFF, 1},
	{0x0310, 0x01, 0xFF, 1},
	{0x0820, 0x07, 0xFF, 1},
	{0x0821, 0x80, 0xFF, 1},
	{0x0822, 0x00, 0xFF, 1},
	{0x0823, 0x00, 0xFF, 1},
	{0x3000, 0x00, 0xFF, 1},
	{0x3002, 0x01, 0xFF, 1},
	{0x3003, 0x35, 0xFF, 1},
	{0x6259, 0x06, 0xFF, 1},
	{0x0600, 0x00, 0xFF, 1},
	{0x0601, 0x03, 0xFF, 1},
	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_1920_1080_2lane_1g_30fps_test_pattern[] = {
	{0x0136, 0x18, 0xFF, 1},
	{0x0137, 0x00, 0xFF, 1},
	{0xAE20, 0x00, 0xFF, 1},
	{0x463B, 0x30, 0xFF, 1},
	{0x463E, 0x05, 0xFF, 1},
	{0x4612, 0x66, 0xFF, 1},
	{0x4815, 0x65, 0xFF, 1},
	{0x4991, 0x00, 0xFF, 1},
	{0x4992, 0x01, 0xFF, 1},
	{0x4993, 0xFF, 0xFF, 1},
	{0x458B, 0x00, 0xFF, 1},
	{0x452A, 0x02, 0xFF, 1},
	{0x4A7C, 0x00, 0xFF, 1},
	{0x4A7D, 0x1C, 0xFF, 1},
	{0x4A7E, 0x00, 0xFF, 1},
	{0x4A7F, 0x17, 0xFF, 1},
	{0x462C, 0x2E, 0xFF, 1},
	{0x461B, 0x28, 0xFF, 1},
	{0x4663, 0x29, 0xFF, 1},
	{0x461A, 0x7C, 0xFF, 1},
	{0x4619, 0x28, 0xFF, 1},
	{0x4667, 0x22, 0xFF, 1},
	{0x466B, 0x23, 0xFF, 1},
	{0x4D16, 0x00, 0xFF, 1},
	{0x6204, 0x01, 0xFF, 1},
	{0x6209, 0x00, 0xFF, 1},
	{0x621F, 0x01, 0xFF, 1},
	{0x621E, 0x10, 0xFF, 1},
	{0x48E3, 0x82, 0xFF, 1},
	{0x0114, 0x01, 0xFF, 1},
	{0x0340, 0x06, 0xFF, 1},
	{0x0341, 0x08, 0xFF, 1},
	{0x0342, 0x0E, 0xFF, 1},
	{0x0343, 0x70, 0xFF, 1},
	{0x0344, 0x00, 0xFF, 1},
	{0x0345, 0xF0, 0xFF, 1},
	{0x0346, 0x03, 0xFF, 1},
	{0x0347, 0x34, 0xFF, 1},
	{0x0348, 0x08, 0xFF, 1},
	{0x0349, 0x6F, 0xFF, 1},
	{0x034A, 0x07, 0xFF, 1},
	{0x034B, 0x6B, 0xFF, 1},
	{0x0381, 0x01, 0xFF, 1},
	{0x0383, 0x01, 0xFF, 1},
	{0x0385, 0x01, 0xFF, 1},
	{0x0387, 0x01, 0xFF, 1},
	{0x0900, 0x00, 0xFF, 1},
	{0x0901, 0x00, 0xFF, 1},
	{0x0112, 0x0A, 0xFF, 1},
	{0x0113, 0x0A, 0xFF, 1},
	{0x034C, 0x07, 0xFF, 1},
	{0x034D, 0x80, 0xFF, 1},
	{0x034E, 0x04, 0xFF, 1},
	{0x034F, 0x38, 0xFF, 1},
	{0x0408, 0x00, 0xFF, 1},
	{0x0409, 0x00, 0xFF, 1},
	{0x040A, 0x00, 0xFF, 1},
	{0x040B, 0x00, 0xFF, 1},
	{0x040C, 0x07, 0xFF, 1},
	{0x040D, 0x80, 0xFF, 1},
	{0x040E, 0x04, 0xFF, 1},
	{0x040F, 0x38, 0xFF, 1},
	{0x0301, 0x07, 0xFF, 1},
	{0x0303, 0x02, 0xFF, 1},
	{0x0305, 0x04, 0xFF, 1},
	{0x0306, 0x00, 0xFF, 1},
	{0x0307, 0xC8, 0xFF, 1},
	{0x0309, 0x0A, 0xFF, 1},
	{0x030B, 0x01, 0xFF, 1},
	{0x030D, 0x0F, 0xFF, 1},
	{0x030E, 0x02, 0xFF, 1},
	{0x030F, 0x71, 0xFF, 1},
	{0x0310, 0x01, 0xFF, 1},
	{0x0820, 0x07, 0xFF, 1},
	{0x0821, 0xD0, 0xFF, 1},
	{0x0822, 0x00, 0xFF, 1},
	{0x0823, 0x00, 0xFF, 1},
	{0x3000, 0x00, 0xFF, 1},
	{0x3002, 0x01, 0xFF, 1},
	{0x3003, 0x04, 0xFF, 1},
	{0x6259, 0x05, 0xFF, 1},
	{0x0600, 0x00, 0xFF, 1},
	{0x0601, 0x04, 0xFF, 1},
	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t setting_1920_1080_2lane_1g_30fps[] = {
	{0x0136, 0x18, 0xFF, 1},
	{0x0137, 0x00, 0xFF, 1},
	{0xAE20, 0x00, 0xFF, 1},
	{0x463B, 0x30, 0xFF, 1},
	{0x463E, 0x05, 0xFF, 1},
	{0x4612, 0x66, 0xFF, 1},
	{0x4815, 0x65, 0xFF, 1},
	{0x4991, 0x00, 0xFF, 1},
	{0x4992, 0x01, 0xFF, 1},
	{0x4993, 0xFF, 0xFF, 1},
	{0x458B, 0x00, 0xFF, 1},
	{0x452A, 0x02, 0xFF, 1},
	{0x4A7C, 0x00, 0xFF, 1},
	{0x4A7D, 0x1C, 0xFF, 1},
	{0x4A7E, 0x00, 0xFF, 1},
	{0x4A7F, 0x17, 0xFF, 1},
	{0x462C, 0x2E, 0xFF, 1},
	{0x461B, 0x28, 0xFF, 1},
	{0x4663, 0x29, 0xFF, 1},
	{0x461A, 0x7C, 0xFF, 1},
	{0x4619, 0x28, 0xFF, 1},
	{0x4667, 0x22, 0xFF, 1},
	{0x466B, 0x23, 0xFF, 1},
	{0x4D16, 0x00, 0xFF, 1},
	{0x6204, 0x01, 0xFF, 1},
	{0x6209, 0x00, 0xFF, 1},
	{0x621F, 0x01, 0xFF, 1},
	{0x621E, 0x10, 0xFF, 1},
	{0x48E3, 0x82, 0xFF, 1},
	{0x0114, 0x01, 0xFF, 1},
	{0x0340, 0x06, 0xFF, 1},
	{0x0341, 0x08, 0xFF, 1},
	{0x0342, 0x0E, 0xFF, 1},
	{0x0343, 0x70, 0xFF, 1},
	{0x0344, 0x00, 0xFF, 1},
	{0x0345, 0xF0, 0xFF, 1},
	{0x0346, 0x03, 0xFF, 1},
	{0x0347, 0x34, 0xFF, 1},
	{0x0348, 0x08, 0xFF, 1},
	{0x0349, 0x6F, 0xFF, 1},
	{0x034A, 0x07, 0xFF, 1},
	{0x034B, 0x6B, 0xFF, 1},
	{0x0381, 0x01, 0xFF, 1},
	{0x0383, 0x01, 0xFF, 1},
	{0x0385, 0x01, 0xFF, 1},
	{0x0387, 0x01, 0xFF, 1},
	{0x0900, 0x00, 0xFF, 1},
	{0x0901, 0x00, 0xFF, 1},
	{0x0112, 0x0A, 0xFF, 1},
	{0x0113, 0x0A, 0xFF, 1},
	{0x034C, 0x07, 0xFF, 1},
	{0x034D, 0x80, 0xFF, 1},
	{0x034E, 0x04, 0xFF, 1},
	{0x034F, 0x38, 0xFF, 1},
	{0x0408, 0x00, 0xFF, 1},
	{0x0409, 0x00, 0xFF, 1},
	{0x040A, 0x00, 0xFF, 1},
	{0x040B, 0x00, 0xFF, 1},
	{0x040C, 0x07, 0xFF, 1},
	{0x040D, 0x80, 0xFF, 1},
	{0x040E, 0x04, 0xFF, 1},
	{0x040F, 0x38, 0xFF, 1},
	{0x0301, 0x07, 0xFF, 1},
	{0x0303, 0x02, 0xFF, 1},
	{0x0305, 0x04, 0xFF, 1},
	{0x0306, 0x00, 0xFF, 1},
	{0x0307, 0xC8, 0xFF, 1},
	{0x0309, 0x0A, 0xFF, 1},
	{0x030B, 0x01, 0xFF, 1},
	{0x030D, 0x0F, 0xFF, 1},
	{0x030E, 0x02, 0xFF, 1},
	{0x030F, 0x71, 0xFF, 1},
	{0x0310, 0x01, 0xFF, 1},
	{0x0820, 0x07, 0xFF, 1},
	{0x0821, 0xD0, 0xFF, 1},
	{0x0822, 0x00, 0xFF, 1},
	{0x0823, 0x00, 0xFF, 1},
	{0x3000, 0x00, 0xFF, 1},
	{0x3002, 0x01, 0xFF, 1},
	{0x3003, 0x04, 0xFF, 1},
	{0x6259, 0x05, 0xFF, 1},
	{0x0202, 0x0C, 0xFF, 1},//int time
	{0x0203, 0x0E, 0xFF, 1},
	{0x0204, 0x00, 0xFF, 1},
	{0x0205, 0xE0, 0xFF, 1},//a gain
	{0x020E, 0x01, 0xFF, 1},
	{0x020F, 0x00, 0xFF, 1},
	{ 0x0000, 0x0000, 0x0000, 0x0000 },
};

static acam_reg_t settings_context_imx227[] = {
    { 0x18ec8, 0x0L, 0x1f,1 },
    { 0x1ae7c, 0xa0b9beb9L, 0xffffffff,4 },
    { 0x1ae84, 0x5aL, 0xff,1 },
    { 0x1ae84, 0x32L, 0xff,1 },
    { 0x1ae84, 0x50L, 0xff,1 },
    { 0x1ae84, 0x5aL, 0xff,1 },
    { 0x1aea8, 0x5fa0L, 0xffff,2 },
    { 0x80L,   0x1L,  0xff,1 },
    { 0x19284, 0x4000L, 0xffff,2 },
    { 0x19288, 0x400L, 0xffff,2 },
    { 0x1abc0, 0x400L, 0xffff,2 },
    { 0x1abc4, 0x4000L, 0xffff,2 },
    //stop sequence - address is 0x0000
    { 0x0000, 0x0000, 0x0000, 0x0000 }
};

static const acam_reg_t *seq_table[] = {
    init,
	setting_2200_2720_2lane_1g_30fps,
	setting_2200_2720_2lane_1g_30fps_test_pattern,
	setting_2200_2720_2lane_960m_30fps_test_pattern,
	setting_1920_1080_2lane_1g_30fps_test_pattern,
	setting_1920_1080_2lane_1g_30fps,
};

static const acam_reg_t *isp_seq_table[] = {
	settings_context_imx227,
};


#define SENSOR_IMX227_SEQUENCE_DEFAULT seq_table
#define SENSOR_IMX227_ISP_CONTEXT_SEQUENCE isp_seq_table


#define SENSOR_IMX227_SEQUENCE_DEFAULT_INIT    0
#define SENSOR_IMX227_SEQUENCE_DEFAULT_PREVIEW    1
#define SENSOR_IMX227_SEQUENCE_TESTPATTERN    2
#define SENSOR_IMX227_SEQUENCE_TESTPATTERN_960M   3
#define SENSOR_IMX227_SEQUENCE_1080P_TESTPATTERN  4
#define SENSOR_IMX227_SEQUENCE_1080P_PREVIEW  5
#define SENSOR_IMX227_CONTEXT_SEQ  0

#endif // __IMX227_SEQ_H__
